package com.cskaoyan.service.goods;

import com.cskaoyan.bean.BaseParam;
import com.cskaoyan.bean.goods.Goods;
import com.cskaoyan.bean.goods.base.GoodsPageData;
import com.cskaoyan.bean.goods.bo.GoodsBo;
import com.cskaoyan.bean.goods.bo.GoodsSearchBO;
import com.cskaoyan.bean.goods.vo.CategoryBrandAndBrandInfoVo;
import com.cskaoyan.bean.goods.vo.GoodsDetailVo;

/**
 * @Description:商品的Service接口,面向接口编程
 * @author: Jason 805636901@qq.com
 * @create: 2021-10-18-11:27 PM
 */
public interface GoodsService {
    GoodsPageData queryGoods(BaseParam baseParam, GoodsSearchBO goodsSearchBO);

    //CatAndBrandVO queryCatAndBrand(); // 废品,写了个寂寞

    CategoryBrandAndBrandInfoVo getCategoryAndBrand();

    int deleteGoods(Goods goods);

    int updateGoods(GoodsBo goodsInfo);

    int createGoods(GoodsBo goodsInfo);

    GoodsDetailVo getGoodsDetail(Integer id);
}
